from itertools import accumulate

n, a, b, c = map(int, input().split())
nums = list(map(int, input().split()))
prefix = [0] + list(accumulate(nums))
i = 0
max_length = 0
for j in range(n):  # 定义结束位置
    while prefix[j + 1] - prefix[i] <= a * (b * (j + 1) - c * (i + 1)) and i < j:
        i += 1
    if prefix[j + 1] - prefix[i] > a * (b * (j + 1) - c * (i + 1)):
        max_length = max(max_length, j - i + 1)
print(max_length)
